package com.xdf.teacher.MvcTest;

import com.xdf.teacher.R;
import com.xdf.teacher.entity.User;
import com.xdf.teacher.http.APPURL;
import com.xdf.teacher.http.NetUtils;

import net.neiquan.applibrary.base.BaseActivity;
import net.neiquan.okhttp.NetCallBack;
import net.neiquan.okhttp.ResultModel;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by JavaDog on 2018-4-17.
 */

public class MvcActivity extends BaseActivity implements MvcListener {

    private MvcModelImp mvcModelImp;

    @Override
    public int getRootViewId() {
        return R.layout.expand_text_view;
    }

    @Override
    public void setViews() {
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("username", "aaa");
        params.put("password", "123");

        mvcModelImp = new MvcModelImp();
        mvcModelImp.getHttpInfo(params, APPURL.ROOM_ATTRIBUTE, User.class,this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void onFailed() {

    }

    @Override
    public void onSuccess(String str) {

    }
}
